﻿using System.Collections.Generic;
using DAL;
using Entity;

namespace Business
{
	public class OutGalleryBusiness
	{
		#region code CMS

        /// <summary>
        /// Lấy list gallery theo ProId
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static List<OutGallery> GetOutGalleryListByProId(int id)
        {
		    var result = FreshCmsDataAccessProvider.OutGallery.GetOutGalleryListByProId(id);
		    return result;
        }

        /// <summary>
        /// Lấy list gallery theo NewId
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static List<OutGallery> GetOutGalleryListByNewId(int id)
        {
            var result = FreshCmsDataAccessProvider.OutGallery.GetOutGalleryListByNewId(id);
            return result;
        }

		public static int InsertOutGallery(OutGallery OutGallery)
        {
            var result = FreshCmsDataAccessProvider.OutGallery.InsertOutGallery(OutGallery);
            return result;
        }

        public static int DeleteOutGallery(int galleryId)
        {
            var result = FreshCmsDataAccessProvider.OutGallery.DeleteOutGallery(galleryId);
            return result;
        }

        /// <summary>
        /// Xóa các gallery được chọn
        /// </summary>
        /// <param name="galleryId"></param>
        /// <returns></returns>
        public static int DeleteMultiOutGallery(string lstGalleryId)
        {
            var result = FreshCmsDataAccessProvider.OutGallery.DeleteMultiOutGallery(lstGalleryId);
            return result;
        }
		#endregion
	}
}